package com.myapp.ruyixing.http;

import java.util.List;

import org.json.JSONObject;

import com.myapp.ruyixing.model.RankCategory.RankSubCategory;

public class RankMoreCategoryParser extends RYJSONParser {

	@Override
	public Object parse(JSONObject jsonObject) {
		if (getErrno(jsonObject) != NO_ERROR) {
			return null;
		}

		RankMoreCategory category = loadByGson(jsonObject,
				RankMoreCategory.class);

		return category;
	}
	
	public static class RankMoreCategory {

		public String id;
		public String name;
		public List<RankSubCategory> data;
	}
}
